<template>
  <div class="gc-icon-button" :class="{ 'link-btn': type === 'link' }">
    <el-button
      v-if="type === 'link'"
      type="primary"
      link
      ><slot></slot></el-button
    >
    <i v-else :class="['icon-button', icon]"></i>
  </div>
</template>

<script setup lang="ts">
defineProps({
  icon: String,
  type: String
})
</script>
